/* ==========================================================================
   FEATURE: KOREAN RECIPES STYLESHEET
   Styles for Recipe Selector Pills, Step-by-Step Instructions,
   and Linked Ingredients Product Cards
   ========================================================================== */

.recipes-view-inner {
  max-width: 920px;
  margin: 0 auto;
}

/* 1. Recipe Selector Pills (Horizontal Scroll) */
.recipe-pills-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.recipe-pills-row::-webkit-scrollbar {
  display: none;
}

.recipe-pill {
  padding: 9px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #334155;
  font-family: inherit;
}

.recipe-pill:hover {
  border-color: #FB3E38;
  color: #FB3E38;
}

.recipe-pill.active {
  border-color: #FB3E38;
  background: #FB3E38;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(251, 62, 56, 0.25);
}

/* 2. Main Recipe Card */
.recipe-card-main {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #F1F5F9;
}

.recipe-detail-title {
  font-size: 26px;
  font-weight: 800;
  color: #000A46;
  margin: 0 0 18px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

/* 2.5. Recipe Image Carousel (Interactive & Sleek) */
.recipe-carousel-container {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 auto 24px auto;
  border-radius: 18px;
  overflow: hidden;
  background: #0F172A;
  box-shadow: 0 8px 24px rgba(0, 10, 70, 0.08);
  border: 1px solid #E2E8F0;
  user-select: none;
  direction: ltr !important; /* Strictly LTR coordinate space for reliable transforms */
}

.recipe-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  direction: ltr !important;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.recipe-carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.recipe-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.recipe-carousel-slide:hover img {
  transform: scale(1.02);
}

/* Arrow Navigation Buttons */
.recipe-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #000A46;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.recipe-carousel-arrow:hover {
  background: #FB3E38;
  color: #FFFFFF;
  border-color: #FB3E38;
  transform: translateY(-50%) scale(1.08);
}

.recipe-carousel-arrow.prev {
  left: 14px;
}

.recipe-carousel-arrow.next {
  right: 14px;
}

/* Carousel Indicator Dots */
.recipe-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 10, 70, 0.45);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 5;
}

.recipe-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.recipe-carousel-dot.active {
  width: 22px;
  border-radius: 10px;
  background: #FB3E38;
  box-shadow: 0 0 8px rgba(251, 62, 56, 0.7);
}

/* Image Counter Pill */
.recipe-carousel-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 10, 70, 0.65);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 5;
  letter-spacing: 0.5px;
}

/* 2.6. Recipe Fallback Culinary Banner (When no photo uploaded in Strapi) */
.recipe-placeholder-banner {
  width: 100%;
  max-width: 620px;
  margin: 0 auto 24px auto;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #000A46 0%, #172554 50%, #1E1B4B 100%);
  border: 1px solid rgba(251, 62, 56, 0.25);
  box-shadow: 0 10px 28px rgba(0, 10, 70, 0.12);
  padding: 30px 24px;
  color: #FFFFFF;
  text-align: center;
  position: relative;
}

.recipe-placeholder-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 62, 56, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.recipe-placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 62, 56, 0.2);
  border: 1px solid rgba(251, 62, 56, 0.5);
  color: #FECACA;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.recipe-placeholder-icon {
  font-size: 52px;
  margin-bottom: 12px;
  display: inline-block;
  animation: floatCook 3s ease-in-out infinite;
}

@keyframes floatCook {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.recipe-placeholder-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 8px;
  line-height: 1.3;
}

.recipe-placeholder-korean {
  font-size: 13px;
  color: #93C5FD;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.recipe-placeholder-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.recipe-placeholder-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #F8FAFC;
}

/* 3. Preparation Steps Box */
.recipe-steps-box {
  margin-bottom: 28px;
  background: #F8FAFC;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
}

.recipe-steps-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.recipe-steps-title {
  font-size: 16px;
  font-weight: 800;
  color: #000A46;
  margin: 0;
}

.recipe-steps-list-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.recipe-step-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #FFFFFF;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #EEF2F6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.recipe-step-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.recipe-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #000A46 0%, #1E293B 100%);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.recipe-step-text {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.6;
  color: #334155;
  font-weight: 500;
}

/* 4. Recipe Ingredients & Products Section */
.recipe-products-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1.5px dashed #E2E8F0;
}

.recipe-products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.recipe-products-title {
  font-size: 18px;
  font-weight: 800;
  color: #000A46;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 5. Add All Ingredients Button */
.btn-add-all-recipe {
  background: linear-gradient(135deg, #000A46 0%, #0F172A 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(0, 10, 70, 0.15);
}

.btn-add-all-recipe:hover {
  background: var(--primary-red, #FB3E38);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(251, 62, 56, 0.35);
}

/* ==========================================================================
   6. KOREAN RECIPES HOME FEATURE SECTION (SHOWCASE ON HOME PAGE)
   ========================================================================== */

.recipes-home-showcase-section {
  max-width: var(--max-width, 1280px);
  margin: 32px auto;
  padding: 0 20px;
}

.recipes-showcase-card-wrapper {
  background: linear-gradient(135deg, #FFFDFB 0%, #FFF8F8 50%, #F8FAFC 100%);
  border: 1px solid #F1F5F9;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.recipes-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.recipes-showcase-title-wrap {
  display: flex;
  flex-direction: column;
}

.recipes-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FEE2E2;
  color: #EF4444;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 6px;
}

.recipes-showcase-title {
  font-size: 22px;
  font-weight: 800;
  color: #000A46;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipes-showcase-subtitle {
  font-size: 13.5px;
  color: #64748B;
  margin-top: 4px;
}

.recipes-showcase-viewall-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #000A46;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.recipes-showcase-viewall-btn:hover {
  border-color: #FB3E38;
  color: #FB3E38;
  background: #FFF8F8;
  transform: translateY(-1px);
}

/* Recipes Showcase Track (Horizontal Scroll on Mobile, Grid on Desktop) */
.recipes-showcase-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.home-recipe-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.home-recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 10, 70, 0.08);
  border-color: rgba(251, 62, 56, 0.3);
}

.home-recipe-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0F172A;
  overflow: hidden;
}

.home-recipe-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-recipe-card:hover .home-recipe-thumb-img {
  transform: scale(1.05);
}

.home-recipe-thumb-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000A46 0%, #1E1B4B 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  padding: 12px;
  text-align: center;
}

.home-recipe-thumb-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 10, 70, 0.75);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[dir="ltr"] .home-recipe-thumb-badge {
  right: auto;
  left: 10px;
}

.home-recipe-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-recipe-name {
  font-size: 15.5px;
  font-weight: 800;
  color: #000A46;
  margin: 0 0 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-recipe-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.home-recipe-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  background: #F1F5F9;
  padding: 3px 9px;
  border-radius: 8px;
}

.home-recipe-pill.ingredients-count {
  background: #FEF3C7;
  color: #B45309;
}

.home-recipe-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.home-recipe-btn-view {
  flex: 1;
  background: #000A46;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.home-recipe-btn-view:hover {
  background: var(--primary-red, #FB3E38);
}

.home-recipe-btn-cart {
  background: #FFF1F0;
  color: #FB3E38;
  border: 1px solid rgba(251, 62, 56, 0.3);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.home-recipe-btn-cart:hover {
  background: #FB3E38;
  color: #FFFFFF;
}

/* ==========================================================================
   7. RESPONSIVE OVERRIDES (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 768px) {
  .recipes-home-showcase-section {
    margin: 22px auto;
    padding: 0 12px;
  }

  .recipes-showcase-card-wrapper {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .recipes-showcase-title {
    font-size: 18px;
  }

  .recipes-showcase-subtitle {
    font-size: 12px;
  }

  /* Horizontal swipe track on mobile for quick discovery */
  .recipes-showcase-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    gap: 12px;
    scrollbar-width: none;
  }

  .recipes-showcase-track::-webkit-scrollbar {
    display: none;
  }

  .home-recipe-card {
    min-width: 250px;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .recipe-card-main {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .recipe-detail-title {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .recipe-carousel-container {
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .recipe-steps-box {
    padding: 14px;
    border-radius: 14px;
  }

  .recipe-step-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .recipe-step-num {
    width: 24px;
    height: 24px;
    font-size: 11.5px;
  }

  .recipe-step-text {
    font-size: 13.5px;
  }

  .recipe-products-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-add-all-recipe {
    justify-content: center;
    width: 100%;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .recipe-pills-row {
    gap: 6px;
    margin-bottom: 16px;
  }

  .recipe-pill {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 16px;
  }

  .home-recipe-card {
    min-width: 230px;
    max-width: 240px;
  }

  .home-recipe-body {
    padding: 12px;
  }

  .home-recipe-name {
    font-size: 14px;
  }
}

/* ==========================================================================
   8. SHOP RECIPES SHOWCASE STRIP (Positioned Directly ABOVE Category Pills)
   ========================================================================== */

.recipes-shop-showcase-strip {
  margin: 0 0 24px 0;
  width: 100%;
}

.shop-recipes-strip-wrapper {
  background: linear-gradient(135deg, #000A46 0%, #081136 60%, #150828 100%);
  border-radius: 18px;
  padding: 22px 24px;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 10, 70, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.shop-recipes-strip-wrapper::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(251, 62, 56, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.shop-recipes-strip-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.shop-recipes-strip-title-wrap {
  flex: 1;
  width: 100%;
}

.shop-recipes-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.shop-recipes-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 62, 56, 0.2);
  color: #FF8581;
  border: 1px solid rgba(251, 62, 56, 0.35);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}

.shop-recipes-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FB3E38;
  display: inline-block;
  box-shadow: 0 0 8px #FB3E38;
}

.shop-recipes-heading {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.shop-recipes-caption {
  font-size: 13.5px;
  color: #CBD5E1;
  margin: 0;
  line-height: 1.5;
}

.shop-recipes-all-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.shop-recipes-all-btn:hover {
  background: #FB3E38;
  border-color: #FB3E38;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(251, 62, 56, 0.4);
}

.shop-recipes-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 2;
}

.shop-recipe-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shop-recipe-card:hover {
  transform: translateY(-3px);
  border-color: #FB3E38;
  box-shadow: 0 8px 24px rgba(0, 10, 70, 0.16);
}

.shop-recipe-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.shop-recipe-thumb-wrap {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #000A46;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.shop-recipe-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shop-recipe-card:hover .shop-recipe-thumb-img {
  transform: scale(1.08);
}

.shop-recipe-fallback-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, #000A46 0%, #1E1B4B 100%);
}

.shop-recipe-flag-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 1px 3px;
  border-radius: 4px;
  line-height: 1;
}

[dir="ltr"] .shop-recipe-flag-badge {
  right: auto;
  left: 2px;
}

.shop-recipe-content {
  flex: 1;
  min-width: 0;
}

.shop-recipe-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #000A46;
  margin: 0 0 4px 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-recipe-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.shop-recipe-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.shop-recipe-pill.highlight {
  background: #FEF3C7;
  color: #B45309;
}

.shop-recipe-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding-top: 2px;
}

.shop-recipe-view-btn {
  flex: 1;
  background: #000A46;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.shop-recipe-view-btn:hover {
  background: #FB3E38;
}

.shop-recipe-cart-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #FFF1F0;
  color: #FB3E38;
  border: 1px solid rgba(251, 62, 56, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.shop-recipe-cart-btn:hover {
  background: #FB3E38;
  color: #FFFFFF;
}

/* ==========================================================================
   9. RECIPE QUICK-LOOK MODAL ("tobe looked at when clicked")
   ========================================================================== */

@keyframes recipeModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes recipeModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.recipe-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 10, 70, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: recipeModalFadeIn 0.25s ease-out;
}

.recipe-modal-dialog {
  background: #FFFFFF;
  border-radius: 22px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 10, 70, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.85);
  display: flex;
  flex-direction: column;
  animation: recipeModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-modal-close-btn {
  position: absolute;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  cursor: pointer;
  color: #475569;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 20;
}

[dir="rtl"] .recipe-modal-close-btn {
  left: 16px;
  right: auto;
}

[dir="ltr"] .recipe-modal-close-btn {
  right: 16px;
  left: auto;
}

.recipe-modal-close-btn:hover {
  background: #FB3E38;
  color: #FFFFFF;
  transform: rotate(90deg);
}

.recipe-modal-scrollable {
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.recipe-modal-scrollable::-webkit-scrollbar {
  width: 6px;
}

.recipe-modal-scrollable::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.recipe-modal-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recipe-modal-header {
  padding-inline-end: 44px;
}

.recipe-modal-top-badge {
  display: inline-block;
  background: #FFF1F0;
  color: #FB3E38;
  border: 1px solid rgba(251, 62, 56, 0.25);
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.recipe-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #000A46;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.recipe-modal-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.recipe-modal-pill {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 8px;
}

.recipe-modal-pill.highlight {
  background: #FEF3C7;
  color: #B45309;
}

/* Modal Image Carousel */
.recipe-modal-carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0F172A;
  direction: ltr !important;
  box-shadow: 0 6px 18px rgba(0, 10, 70, 0.1);
}

.recipe-modal-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  direction: ltr !important;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.recipe-modal-carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.recipe-modal-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: none;
  color: #000A46;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.recipe-modal-arrow:hover {
  background: #FB3E38;
  color: #FFFFFF;
}

.recipe-modal-arrow.prev { left: 10px; }
.recipe-modal-arrow.next { right: 10px; }

.recipe-modal-carousel-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 10, 70, 0.65);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  z-index: 5;
}

.recipe-modal-placeholder-banner {
  background: linear-gradient(135deg, #000A46 0%, #1E1B4B 100%);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  color: #FFFFFF;
}

.recipe-modal-placeholder-badge {
  display: inline-block;
  background: rgba(251, 62, 56, 0.25);
  color: #FF8581;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* Modal Steps Section */
.recipe-modal-steps-section {
  background: #F8FAFC;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid #E2E8F0;
}

.recipe-modal-section-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #000A46;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

/* Modal Ingredients Section */
.recipe-modal-ingredients-section {
  background: #FFFDF9;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid #FEF08A;
}

.recipe-modal-ingredients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.recipe-modal-count-badge {
  color: #FB3E38;
  font-size: 14px;
  font-weight: 800;
}

.recipe-modal-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.recipe-modal-product-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recipe-modal-product-item:hover {
  border-color: #FB3E38;
  box-shadow: 0 4px 12px rgba(251, 62, 56, 0.12);
  transform: translateY(-1px);
}

.recipe-modal-product-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.recipe-modal-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recipe-modal-product-details {
  flex: 1;
  min-width: 0;
}

.recipe-modal-product-name {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.recipe-modal-product-price {
  font-size: 12.5px;
  font-weight: 800;
  color: #FB3E38;
}

.recipe-modal-product-add-btn {
  background: #000A46;
  color: #FFFFFF;
  border: none;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.recipe-modal-product-add-btn:hover {
  background: #FB3E38;
}

/* Modal Footer Actions */
.recipe-modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.recipe-modal-view-full-btn {
  flex: 1;
  background: #000A46;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.recipe-modal-view-full-btn:hover {
  background: #FB3E38;
  box-shadow: 0 4px 14px rgba(251, 62, 56, 0.3);
}

.recipe-modal-dismiss-btn {
  background: #F1F5F9;
  color: #475569;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.recipe-modal-dismiss-btn:hover {
  background: #E2E8F0;
  color: #1E293B;
}

/* Responsive updates for shop strip & modal */
@media (max-width: 768px) {
  .shop-recipes-strip-wrapper {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .shop-recipes-strip-header {
    margin-bottom: 14px;
  }

  .shop-recipes-tag-row {
    margin-bottom: 6px;
  }

  .shop-recipes-tag {
    font-size: 10px;
    padding: 2px 8px;
  }

  .shop-recipes-all-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .shop-recipes-heading {
    font-size: 16px;
    margin: 0 0 4px;
    line-height: 1.3;
  }

  .shop-recipes-caption {
    font-size: 11.5px;
    line-height: 1.4;
  }

  .shop-recipes-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    gap: 10px;
    scrollbar-width: none;
  }

  .shop-recipes-track::-webkit-scrollbar {
    display: none;
  }

  .shop-recipe-card {
    min-width: 240px;
    max-width: 255px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px;
    border-radius: 12px;
  }

  .shop-recipe-thumb-wrap {
    width: 50px;
    height: 50px;
    border-radius: 8px;
  }

  .shop-recipe-title {
    font-size: 12.5px;
  }

  .shop-recipe-pill {
    font-size: 10px;
    padding: 1px 5px;
  }

  .shop-recipe-view-btn {
    font-size: 11px;
    padding: 6px 8px;
  }

  .shop-recipe-cart-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .recipe-modal-dialog {
    max-height: 94vh;
    border-radius: 18px;
  }

  .recipe-modal-scrollable {
    padding: 18px 14px;
  }

  .recipe-modal-title {
    font-size: 18px;
  }

  .recipe-modal-products-grid {
    grid-template-columns: 1fr;
  }

  .recipe-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .recipe-modal-view-full-btn,
  .recipe-modal-dismiss-btn {
    width: 100%;
    text-align: center;
  }
}

